// 数据类型接口，ts专用
interface Person {
  firstName: string;
  lastName: string;
}

const greeter = (person: Person) => {
  return person.firstName.concat(person.lastName);
};

console.log(greeter({ firstName: "song", lastName: "yu" }));
